/*
 *  Point2f.h
 *  openFrameworks
 *
 *  Created by allesblinkt on 5/18/09.
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
 *
 */


#ifndef __ABLIEFERN_POINT_2F
#define __ABLIEFERN_POINT_2F




namespace abliefern {
	
class Point2f {
public:
	
	Point2f();

	Point2f(float theX, float theY);
	
	float x;
	float y;
	
	float distanceSquared(Point2f* theOtherPoint);
	float distanceSquared(float theX, float theY);

	void scale(float theScalar);
	void divide(float theDivisor);

	
	void add(float theX, float theY);
	void subtract(float theX, float theY);
	
	bool isOver(int theX, int theY, int theDiameter);

};

}

#endif